home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / patches / ip20t21a.lha / IFX20to21a_Patch / Patches2.lha / Rexx / AutoFX / SaveBufferAs_ILBM+A.ifx.pre < prev   
Text File  |  1995-04-14  |  945b  |  43 lines

  1. /*
  2.  * SaveBufferAs.ifx.pre
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Save main buffer.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Sequence number (?)
  9.  *    Word(Arg(1),2) = Total number of frames (N)
  10.  *
  11.  * Returns:
  12.  *    0 if successful, non-zero on failure
  13.  *
  14.  */
  15.  
  16. OPTIONS RESULTS
  17.  
  18. base = 'Autofx_SaveBufferAsILBMalf_'
  19.  
  20. lastpath = GETCLIP(base||'Path')
  21. lastext  = GETCLIP(base||'Ext')
  22.  
  23. IF lastpath = "" THEN DO
  24.    GetPrefs SavePath
  25.    lastpath = result
  26.    END
  27.  
  28. IF lastext = "" THEN lastext = ".24"
  29.  
  30. Gadget.1 = 'STRING  120  5 200 14 "Output Path:" "'lastpath'"'
  31. Gadget.2 = 'FILEREQ 321  5  20 14 "Output Path:" "'lastpath'" AT=1 DIRONLY'
  32. Gadget.3 = 'STRING  120 20 200 14 "New Extension:" "'lastext'"'
  33. Gadget.4 = 'TEXT    120 36   1  1 "(** = current frame number)" 1'
  34. Gadget.5 = 'END'
  35.  
  36. NewComplexRequest '"Save Buffer As ILBM w/Alpha"' Gadget 360 55
  37. IF rc ~= 0 THEN EXIT rc
  38.  
  39. CALL SETCLIP(base||'Path', result.1)
  40. CALL SETCLIP(base||'Ext',  result.3)
  41.  
  42. EXIT
  43.